package com.zuikaku.nettychat.dao;

import com.zuikaku.nettychat.vo.FriendVO;
import com.zuikaku.nettychat.pojo.Friend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendMapper {
    int deleteByPrimaryKey(Integer friendId);

    int insert(Friend record);

    int insertSelective(Friend record);

    Friend selectByPrimaryKey(Integer friendId);

    int updateByPrimaryKeySelective(Friend record);

    int updateByPrimaryKey(Friend record);

//    追加
    List<FriendVO> getFriendVOByUserId(@Param("userId") Integer userId);
}